﻿using System.ComponentModel.DataAnnotations;

namespace T.E.ERP.Read.API.Dtos.Dtos
{
    /// <summary>
    /// 采购订单的Dto
    /// </summary>
    public class SupplierDto
    {

        /// <summary>
        /// 采购订单id
        /// </summary>
        public int PurchaseOrderId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocumentCode { get; set; }
        /// <summary>
        /// /单据日期
        /// </summary>
        public DateTime DocumentStatus { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string BusinessStatus { get; set; }
        /// <summary>
        /// 业务状态(正常,挂起,手工关闭,系统关闭)
        /// </summary>
        public string BusinessType { get; set; }
        /// <summary>
        /// 业务类型(外键)
        /// </summary>
        public int Documentid { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string PurchasingDe { get; set; }
        /// <summary>
        /// 采购部门(外键)
        /// </summary>
        public string Purchasingid { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public string Auditor { get; set; }
        /// <summary>
        /// 审核员
        /// </summary>
        public string AuditDate { get; set; }
        /// <summary>
        /// 审核日期
        /// </summary>
        public DateTime MaterialData { get; set; }
        /// <summary>
        /// 用料需求
        /// </summary>
        public string MaterialRire { get; set; }
        /// <summary>
        /// 供方id(外键)
        /// </summary>
        public string Supid { get; set; }
        /// <summary>r
        /// 到货日期
        /// </summary>
        public string ArrivalDate { get; set; }
        /// <summary>
        /// 采购合同
        /// </summary>
        public string PurchaseContract { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string RemarksInfor { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        public string DocumentidName { get; set; }




        /// <summary>
        /// 物料信息id
        /// </summary>
        public int MaterialsInfoid { get; set; }


        /// <summary>
        /// 单据编码   外键  （销售订单）
        /// </summary>
        public string SaleCode { get; set; }
        /// <summary>
        /// 跟单编号
        /// </summary>
        public string? Document { get; set; }




        /// <summary>
        /// 计划单号
        /// </summary>
        public string? DocumentStatuss { get; set; }




        /// <summary>
        /// 物料编码(选择物料外键)
        /// </summary>
        public int Materialid { get; set; }



        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }



        /// <summary>
        /// 型号规格
        /// </summary>
        public string? ModelSper { get; set; }




        /// <summary>
        /// 主计量
        /// </summary>
        public string? ModePrimary { get; set; }



        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime? ModeDate { get; set; }




        /// <summary>
        /// 数量
        /// </summary>
        public int ModeQuantity { get; set; }


        /// <summary>
        /// 单价
        /// </summary>
        public decimal ModeUnitPrice { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public decimal ModeAmount { get; set; }

        /// <summary>
        /// 到货数量
        /// </summary>
        public int ModeReceived { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        public string? ModePurchase { get; set; }


    }
}
